<!DOCTYPE html>
<html lang="en">

	<include file="Public:header" />
	<include file="Public:page_css" />

	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">

		<include file="Public:nav" />
		<div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-12">
                <h2>访客日志</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:U('Index/index')}"><i class="fa fa-home"></i> 主页</a>
                    </li>
                    <li>
                        <a>日志管理</a>
                    </li>
                    <li>
                        <strong>访客日志</strong>
                    </li>
                </ol>
            </div>              
        </div>
        <br />
		<link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/sldate/daterangepicker-bs3.css" />
		<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>	
		<script type="text/javascript" src="__PUBLIC__/sldate/moment.js"></script>
		<script type="text/javascript" src="__PUBLIC__/sldate/daterangepicker.js"></script>
		<script type="text/javascript">
               $(document).ready(function() {
                  $('#reservation').daterangepicker(null, function(start, end, label) {
                    console.log(start.toISOString(), end.toISOString(), label);
                  });
               });
        </script>
        <div class="row">
			<div class="col-sm-12">				  
			    <form name="admin_list_sea" class="form-search" method="post" action="__URL__/visitor_list">
					<div  class="col-sm-2">
					<div class="input-group" style="width: 240px">	
					<span class="input-group-addon"><i class="fa fa-calendar"></i></span>							
						<input type="text" class="form-control" name="reservation" id="reservation" class="sl-date" value="{$s}" placeholder="点击选择日期范围"/>	
					</div>
				</div>
					<div class="col-sm-3">
						<div class="input-group">
							<input type="text" name="key" id="key" class="form-control" value="{$val}" placeholder="输入需查询的用户名" />	
							<span class="input-group-btn"> 
				            	<button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
				            </span>
						</div>
					</div>
				</form>		    
			</div>
		</div>		
		<br />
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5><i class="fa fa-tasks"></i> 访客列表</h5>
					</div>
					<div class="ibox-content">
					<form id="leftnav" name="leftnav" method="post" action="" >
                    <input type="hidden" name="checkk" id="checkk" value="1" />
						<table class="table table-bordered">
							<thead>
								<tr class="long-tr">
									<th width="5%">ID</th>
									<th width="10%">IP</th>
									<th width="10%">地址</th>
									<th width="8%">设备</th>
									<th width="10%">浏览器</th>
									<th width="40%">访问URL</th>
									<th width="20%">访问时间</th>
								</tr>
							</thead>
							<tbody>
								<foreach name="list" item="v">
									<tr class="long-td">
										<td>{$v.c_id}</td>
										<td>{$v.c_ip}</td>
										<td>{$v.c_address}</td>
										<td>{$v.c_os}</td>
										<td>{$v.c_browser}</td>
										<td>{$v.c_url}</td>
										<td>{$v.add_time|date='Y-m-d H:i:s',###}</td>
									</tr>
                                 </foreach>   
							</tbody>
						</table>
					</form>
						<div class="pages" style=" text-align: right;">
							{$page}
						</div>
					</div>
				</div>
			</div>
		</div>

		<include file="Public:footer" />
	</body>

</html>
